const logger = (eventName: string, ...content: any[]) => {
  if (!import.meta.env.DEV) {
    return
  }
  const time = new Date().toLocaleTimeString()
  console.info(
    `%cJinbyte Console %c${time} %c[${eventName}]`,
    `background: #015beb;
    color: #fff;
    border-radius: 2px;
    padding: 2px 5px;
    margin-right: 6px;`,
    `color: rgba(0,0,0,.5)`,
    `color: #069f69;
    font-weight: bold`,
    ...content,
  )
}
export default logger  